﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customers/Customers.Master" AutoEventWireup="true" CodeBehind="HistoryReservation.aspx.cs" Inherits="Pep_3014_3070.Customers.HistoryReservation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <%--Pregled svih rezervacija!--%>

    <%--Treba napraviti pregled apartmana sa svim osobinama rezervacije . . . . OZNACITI NA KALENDARU REZERVIRANI PERIOD!--%>
    <div class="main-contents" style="margin-top: 150px !important;">
        <div class="container">
            <div class="row">
                <!-- START #page -->
                <div id="page" class="col-md-8">
                    <!-- START #contactForm -->
                    <asp:Repeater ID="RezervacijeRepeater1" runat="server" OnItemCommand="RezervacijeRepeater1_ItemCommand">
                        <ItemTemplate>
                            <section id="order-confirmation">
                                <div class="booking gray clearfix marb30 box-shadow1">
                                    <div class="selected-deal">
                                        <h2 class="marb20"><%# Eval("Title") %></h2>
                                        <asp:TextBox ID="ApartmanIDInput" Visible="false" runat="server" Text='<%# Eval("ApartmentID") %>'></asp:TextBox>
                                        <div class="ft-item">
                                            <span class="ft-image img-wt-border">
                                                <img src='<%# Eval("ProfilePictures") %>' alt="featured Scroller" style="height: 150px !important;" />
                                            </span>
                                            <div class="ft-data">
                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>
                                            </div>
                                            <div class="ft-foot">
                                                <h4 class="ft-title text-upper">
                                                    <asp:Label ID="Label12" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                                                </h4>
                                                <span class="ft-offer text-upper"><%# string.Format("{0:C}" ,  Eval("Price")) %> $</span>
                                            </div>
                                            <div class="ft-foot-ex">
                                                <span class="ft-date text-upper alignleft"><%# string.Format("{0:m}", Eval("ReservationDate")) %></span>
                                                <span class="ft-temp alignright">17&#730;c</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="booking-status">
                                        <h2 class="marb20">Detalji rezervacije</h2>
                                        <div class="input-field  schedule">
                                            <label>Datum dolaska:</label><asp:Label ID="lblCheckIn" runat="server" Text='<%# string.Format("{0:m}",Eval("CheckIn")) %>'></asp:Label>
                                        </div>
                                        <div class="input-field schedule">
                                            <label>Datum odlaska :</label><asp:Label ID="lblCheckOut" runat="server" Text='<%# string.Format("{0:m}",Eval("CheckOut")) %>'></asp:Label>
                                        </div>
                                        <div class="input-field schedule">
                                            <label>Broj osoba :</label>
                                            <asp:Label ID="lblNumberguest" runat="server" Text='<%# Eval("NumberGuest") %>'></asp:Label>
                                        </div>
                                        <div class="input-field schedule">
                                            <label>Broj nocenja :</label>
                                            <asp:Label ID="Label2" runat="server" Text='<%# string.Format("{0:d}",Eval("Nights")) %>'></asp:Label>
                                        </div>
                                        <div class="input-field schedule">
                                            <label>Ukupno :</label>
                                            <label style="color: red"><%# string.Format("{0:C}" ,  Eval("Price")) %> $</label>
                                        </div>
                                        <%--                 
                           <div class="input-field select">
                                            <label>Status :</label>
                                            <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                                        </div>--%>

                                        <div class="input-field select">
                                            <label id="lblOcjena" runat="server"> Ocijeni</label>
                                            <asp:DropDownList ID="OcjenaDropDownList" runat="server">
                                                <asp:ListItem Value="0" Text="Odaberi ocjenu"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                                <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                                <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                                <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                                <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                                <asp:ListItem Value="6" Text="6"></asp:ListItem>
                                                <asp:ListItem Value="7" Text="7"></asp:ListItem>
                                                <asp:ListItem Value="8" Text="8"></asp:ListItem>
                                                <asp:ListItem Value="9" Text="9"></asp:ListItem>
                                                <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <asp:Button ID="OcijeniBtn" runat="server" Text="Ocjeni" CssClass="btn btn-primary text-upper" CommandName="OcijeniBtn" CommandArgument='<%# Eval("ApartmentID") %>' />
                                    </div>
                                </div>
                            </section>
                        </ItemTemplate>
                    </asp:Repeater>
                    <!-- END #contactForm -->
                </div>
                <!-- END #page -->

                <!-- START #sidebar -->
                <aside id="sidebar" class="col-md-4">
                    
                </aside>
                <!-- END #sidebar -->
            </div>
            <!-- END .row -->
        </div>
    </div>




</asp:Content>
